#ifndef MD2_MODEL_H
#define MD2_MODEL_H

#include "md2_types.h"
#include <fstream>

namespace Eternal
{
	namespace Video { class Texture; }
	namespace Scene
	{
		class Md2Model
		{
			public:
				Md2Model();
				~Md2Model();
				
				void Load(const char *file);
				void Render();
			private:
				Video::Texture *myTexture;
				md2_st_t *TexCoords;
				md2_frame_t *Frames;
				md2_triangle_t *Triangles;
			private:
				unsigned int i_NumTriangles;
				unsigned int i_NumVerts;
		};
	}
}

#endif
